package com.huatai.datacenter.entity.datadesensitization;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author gusiyi
 * @version 1.0
 * @className DesensitizationApplyEntity
 * @description 描述：
 * @date 2023/6/12 16:31
 */
@Data
@ApiModel(value = "脱敏脱密应用实体类",description = "脱敏脱密应用实体类")
@TableName("tb_desensitization_apply")
public class DesensitizationApplyEntity {

	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty("脱敏脱密应用id")
	private Long id;

	@ApiModelProperty("服务id")
	private Long serviceId;

	@ApiModelProperty("服务名称")
	private String serviceName;

	@ApiModelProperty("脱敏脱密规则id")
	private Long desensitizationId;

	@ApiModelProperty("脱敏脱密规则名称")
	private String desensitizationName;

	@ApiModelProperty("应用数据模型id")
	private Long dataModelId;

	@ApiModelProperty("应用数据模型名称")
	private String dataModelName;

	@ApiModelProperty("应用字段名称")
	private String fieldName;

	@ApiModelProperty("创建人id")
	private Long createUserid;

	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

	@ApiModelProperty("更新人id")
	private Long updateUserid;

	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;

	@ApiModelProperty("删除标志(默认为0表示未删除)")
	@TableField(fill = FieldFill.INSERT)
	private Boolean deleted = Boolean.FALSE;

	@TableField(exist = false)
	@ApiModelProperty("当前页码")
	private Integer pageIndex;

	@TableField(exist = false)
	@ApiModelProperty("显示条数")
	private Integer pageSize;
}
